package biz;

import bean.LiveBroadcastInfo;
import mapper.LiveBroadcastMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LiveBroadcastBizImpl implements  LiveBroadcastBiz {
    @Autowired
    private LiveBroadcastMapper lbm;

   @Override
    public  List<LiveBroadcastInfo> findLiveBroadcastByLiveBroadcastNumber(Integer liveBroadcastNumber) {

       return lbm.findLiveBroadcastByLiveBroadcastNumber(liveBroadcastNumber);
    }

    @Override
    public List<LiveBroadcastInfo> findAllLiveBroadcast() {
        return lbm.findAllLiveBroadcast();
    }


    @Override
    public List<LiveBroadcastInfo> addOnlineNumber(Integer liveBroadcastNumber, Integer statement) {
        return lbm.addOnlineNumber(liveBroadcastNumber,statement);
    }

    @Override
    public List<LiveBroadcastInfo> showOnlineNumber(Integer liveBroadcastNumber) {
        return lbm.showOnlineNumber(liveBroadcastNumber);
    }

    @Override
    public List<LiveBroadcastInfo> addAnswerNumber(Integer liveBroadcastNumber,Integer statement) {
        return lbm.addAnswerNumber(liveBroadcastNumber,statement);
    }

    @Override
    public List<LiveBroadcastInfo> showAnswerNumber(Integer liveBroadcastNumber) {
        return lbm.showAnswerNumber(liveBroadcastNumber);
    }

    @Override
    public List<LiveBroadcastInfo> addWinNumber(Integer liveBroadcastNumber, Integer statement) {
        return lbm.addWinNumber(liveBroadcastNumber,statement);
    }

    @Override
    public List<LiveBroadcastInfo> showWinNumber(Integer liveBroadcastNumber) {
        return lbm.showWinNumber(liveBroadcastNumber);
    }
}

